from django.urls import path
from . import views

app_name = 'assets'

urlpatterns = [
    path('mine/', views.asset_list_mine, name='asset_list_mine'),
    path('add/', views.asset_create, name='asset_create'),
    path('<int:pk>/', views.asset_detail, name='asset_detail'),
    path('<int:pk>/edit/', views.asset_edit, name='asset_edit'),
    path('<int:pk>/update-status/', views.asset_update_status, name='asset_update_status'),
    
    # 管理员设备管理
    path('manage/', views.asset_manage, name='asset_manage'),
    path('manage/<int:pk>/', views.asset_admin_detail, name='asset_admin_detail'),
    path('manage/<int:pk>/edit/', views.asset_admin_edit, name='asset_admin_edit'),
    path('manage/<int:pk>/update-status/', views.asset_admin_update_status, name='asset_admin_update_status'),
]
